<%@ page import="com.lbw.model.Person" %><%--
  Created by IntelliJ IDEA.
  User: lbw
  Date: 2021/4/1
  Time: 9:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>PersonInfo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/style.css">

</head>
<body>

<table>
    <caption>Person Information</caption>
    <thead>
    <tr>
        <th scope="col">Id</th>
        <th scope="col">Name</th>
        <th scope="col">Sex</th>
        <th scope="col">Age</th>
        <th scope="col">Born</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>${requestScope.person.id}</td>
        <td>${requestScope.person.name}</td>
        <c:if test="${requestScope.person.sex eq 'male'}">
            <td>男</td>
        </c:if>
        <c:if test="${ requestScope.person.sex eq 'female'}">
            <td>女</td>
        </c:if>
        <td>${requestScope.person.age}</td>
        <td>${requestScope.person.born}</td>
    </tr>
    </tbody>
</table>

</body>
</html>

